package com.itheima.stock.mapper;

import com.itheima.stock.common.domain.InnerMarketDomain;
import com.itheima.stock.common.domain.OuterMarketDomain;
import com.itheima.stock.pojo.StockMarketIndexInfo;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
* @author 11873
* @description 针对表【stock_market_index_info(股票大盘数据详情表)】的数据库操作Mapper
* @createDate 2023-04-04 19:02:00
* @Entity com.itheima.stock.pojo.StockMarketIndexInfo
*/
public interface StockMarketIndexInfoMapper {

    int deleteByPrimaryKey(Long id);

    int insert(StockMarketIndexInfo record);

    int insertSelective(StockMarketIndexInfo record);

    StockMarketIndexInfo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(StockMarketIndexInfo record);

    int updateByPrimaryKey(StockMarketIndexInfo record);

    List<InnerMarketDomain> getMaketInfo(@Param("ids") List<String> innerIds,@Param("lastDate") Date lDate);

    List<Map> stockTradeVolCount(@Param("marketIds") List<String> marketIds,@Param("openDate") Date tOpenDate,@Param("tDate") Date tDtae);

    void insertBatch(@Param("list") ArrayList<StockMarketIndexInfo> list);

    List<OuterMarketDomain> getOuterIndexAll(@Param("date") Date date,@Param("outerIds") List<String> outers);
}
